package com.kxf.androidtestdemo.bean;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.kxf.androidtestdemo.activity.AnimationActivity;

/**
 * @ProjectName: AndroidTestDemo
 * @Package: com.kxf.androidtestdemo.bean
 * @ClassName: BtnParm
 * @Description: java类作用描述
 * @Author: kuangxuefeng
 * @qq: 1024883177
 * @CreateDate: 2020/6/28 14:12
 */
public class BtnParm {
    public String btnText;
    public View.OnClickListener l;

    public static BtnParm getDefStartAty(final Context context, final Class<? extends Activity> classA){
        BtnParm btnParm = new BtnParm();
        btnParm.btnText = "打开" + classA.getSimpleName();
        btnParm.l = new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                context.startActivity(new Intent(context, classA));
            }
        };
        return btnParm;
    }
}
